﻿@import '../common.less';

@color-1: #cc0000;
@color-2: #fafafa;
@color-3: #777777;
@color-4: #dddddd;
@color-5: #555555;
@color-6: #bbbbbb;
@header-height: 65px;

.login-layout {
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
    align-items: center;
    flex-direction: column;
    justify-content: center;

    .login-header {
        width: 100%;
        height: @header-height;
        background: @color-2;

        .layui-container {
            display: flex;
            align-items: center;
            flex-direction: row;
            justify-content: space-between;
        }

        .login-header-text {
            display: flex;
            padding: 8px 0px;
            align-items: center;
            flex-direction: row;
            height: @header-height;
            box-sizing: border-box;

            img {
                height: 100%;
            }

            div {
                font-size: 20px;
                color: @color-3;
                margin-left: 15px;
                padding-left: 15px;
                height: @header-height * 0.5;
                line-height: @header-height * 0.5;
                border-left: 1px solid @color-4;
            }
        }
    }

    .login-body {
        flex: 1;
        height: 100%;
        display: flex;
        align-items: center;
        flex-direction: row;
        justify-content: center;

        .login-body-img {
            margin-right: 10%;
            flex: 1;

            img {
                max-width: 100%;
                max-height: 100%;
            }
        }

        .login-body-form {
            padding: 25px 20px;
            border: 1px solid @color-4;

            .form-title {
                font-size: 18px;
                text-align: center;
                font-weight: bolder;
                line-height: 40px;
                margin-bottom: 10px;
            }

            .form-input {
                width: 300px;
                display: flex;
                color: @color-5;
                font-size: 15px;
                margin-top: 5px;
                padding-top: 8px;
                padding-bottom: 8px;
                align-items: center;
                box-sizing: border-box;
                border-bottom: 1px solid @color-4;

                &.max {
                    width: 400px;
                }

                input {
                    flex: 1;
                    height: 30px;
                    border: none;
                    outline: none;
                    margin-left: 15px;
                    line-height: 30px;
                    color: @color-5;
                    background: none;
                }

                button {
                    margin: 0;
                    border: none;
                    outline: none;
                    cursor: pointer;
                    font-size: 14px;
                    padding: 5px 10px;
                    color: @color-2;
                    background: @color-1;

                    &:disabled {
                        background: @color-6;
                    }
                }
            }

            .form-error {
                color: @color-1;
                height: 20px;
                margin-top: 5px;
                line-height: 20px;
                text-align: center;
            }

            .form-button {
                margin-top: 15px;

                button {
                    margin: 0;
                    width: 100%;
                    border: none;
                    outline: none;
                    cursor: pointer;
                    font-size: 16px;
                    padding: 10px 15px;
                    border-radius: 3px;
                    color: @color-2;
                    background: @color-1;
                }
            }

            .form-more {
                color: @color-5;
                font-size: 14px;
                margin-top: 10px;
                margin-bottom: 5px;

                a:last-child {
                    float: right;
                }
            }
        }
    }

    .login-footer {
        width: 100%;
        color: @color-3;
        font-size: 16px;
        text-align: center;
        background: @color-2;
        height: @header-height;
        line-height: @header-height;
    }
}